r1, r2 = map(float, input().split())
p = 1 / ((1 / r1) + (1 / r2))
print(f"{p:.2f}")